﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace _3lop.GUI
{
    public partial class frmLock2 : DevExpress.XtraEditors.XtraForm
    {
        public frmLock2()
        {
            InitializeComponent();
        }

        private void txtReMK_KeyPress(object sender, KeyPressEventArgs e)
        {

            if (e.KeyChar==13)
            {
                if (txtReMK.Text == frmLock.pass)
                {
                    this.Close();
                    Application.OpenForms["frmmain"].Show();
                }
                else
                    MessageBox.Show("Mật khẩu không phù hợp ", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                
            }
        }
    }
}
